const express = require('express');
const router = express.Router();
const posts_handler = require("../../router_handler/user/Articlelikes");

// 新增一条文章点赞
router.post('/', posts_handler.addArticlelikes);
//取消文章点赞
router.delete('/:articleId/:userId', posts_handler.deleteArticlelikes);
//查询所有文章谁点赞了，
router.get('/', posts_handler.getAllArticlelikes);
//查询某个文章谁点赞了
router.get('/:articleId', posts_handler.getArticlelikes);

module.exports = router;